package com.weiwu.weiwustore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weiwu.weiwustore.entity.Store;
import com.weiwu.weiwustore.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Dreamchaser
 */
@Mapper
@Repository
public interface StoreMapper extends BaseMapper<Store> {
    /**
     * 插入一条仓库记录
     * @param map 参数map
     * @return 受影响的行数
     */
    Integer insertStore(Map<String,Object> map);

    /**
     * 查询所有仓库
     * @return 仓库集合
     */
    List<Store> findStores();
}
